<?php
	namespace Admin\Controller;
	use Think\Controller;
	class OrdersController extends Controller{
		public function ordersList(){
			$ordersObj=D('orders');
			$ordersList=$ordersObj->getOrdersList();
			print_r($ordersList);
		}
		
		public function getFreeCarList(){
			$ordersObj=D('orders');
			$carObj=D('Car');
			$ordersList=$ordersObj->getBusydCar(time(),time()+1);
			$freeCarLisr=$carObj->getFreeCarList($ordersList);
			print_r($ordersList);
			var_dump($freeCarLisr);
		}
	}